import axios from '../../utils/request'

// 题库录入
// 学科
export const GetQuestionbank = data => {
  return axios({
    method: 'GET',
    url: '/subjects/simple'
  })
}
// 目录
export const Getdirectorys = data => {
  return axios({
    method: 'GET',
    url: '/directorys'
  })
}
// 企业
export const Getcompanys = data => {
  return axios({
    method: 'GET',
    url: '/questions/choice'
  })
}
// 添加
export const addquestions = data => {
  return axios({
    method: 'POST',
    url: '/questions',
    data
  })
}

// 基础题库修改
export const gaiquestions = (id, data) => {
  return axios({
    method: 'PUT',
    url: `/questions/${id}`,
    data: data
  })
}
